package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper

public interface UserMapper {
    /**
     * 根据open ID来查询
     * @param openid
     * @return
     */
    @Select("select *from user where openid=#{openid}")
    User SelectByopenId(String openid);

    /**
     * 插入数据
     * @param user1
     */
    void Insert(User user1);
}
